import request from '@/utils/request'

export function listSubjects() {
  return request({ url: '/jiaxiao/assign/subjects', method: 'get' })
}

export function listInstructorSubjects(staffId) {
  return request({ url: '/jiaxiao/assign/instructor/subjects', method: 'get', params: { staffId } })
}

export function addInstructorSubject(staffId, subjectId) {
  return request({ url: '/jiaxiao/assign/instructor/subject', method: 'post', params: { staffId, subjectId } })
}

export function removeInstructorSubject(staffId, subjectId) {
  return request({ url: '/jiaxiao/assign/instructor/subject', method: 'delete', params: { staffId, subjectId } })
}

export function listInstructorStudents(staffId) {
  return request({ url: '/jiaxiao/assign/instructor/students', method: 'get', params: { staffId } })
}

export function countInstructorStudents(staffId) {
  return request({ url: '/jiaxiao/assign/instructor/students/count', method: 'get', params: { staffId } })
}

export function addInstructorStudent(staffId, studentId, remark) {
  return request({ url: '/jiaxiao/assign/instructor/student', method: 'post', params: { staffId, studentId, remark } })
}

export function removeInstructorStudent(staffId, studentId) {
  return request({ url: '/jiaxiao/assign/instructor/student', method: 'delete', params: { staffId, studentId } })
}


